package cn.gzjp.modules.dt.dao;

import cn.gzjp.common.persistence.CrudDao;
import cn.gzjp.common.persistence.annotation.MyBatisDao;
import cn.gzjp.modules.dt.entity.Exam;
import cn.gzjp.modules.dt.entity.TestRecord;

/**
 * 练习记录DAO接口
 * @author zengcp
 * @version 2018-02-24
 */
@MyBatisDao
public interface TestRecordDao extends CrudDao<TestRecord> {

    public TestRecord findByOpenidAndQuestionId(TestRecord record);

    Integer getCorrectCount(TestRecord record);

    Integer getErrorCount(TestRecord record);
    Integer getTotalCount(TestRecord record);
	
}